package com.alibaba.algo.config;

import com.github.pagehelper.PageInterceptor;
import org.springframework.context.annotation.Bean;

import java.util.Properties;

/**
 * @author : WangZhiPan
 * @date : 2021/9/30 10:32
 */
//@Configuration
public class PageInterceptorConfig {

    @Bean
    PageInterceptor pageInterceptor() {
        PageInterceptor pageInterceptor = new PageInterceptor();
        Properties properties = new Properties();
        properties.setProperty("supportMethodsArguments", "true");
        pageInterceptor.setProperties(properties);
        return pageInterceptor;
    }


}
